﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace WebApi.Models
{

    //如果好用，请收藏地址，帮忙分享。
    public class LocationItem
    {
        /// <summary>
        /// 浦东新区
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string lat { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string lon { get; set; }
        /// <summary>
        /// 上海
        /// </summary>
        public string adm2 { get; set; }
        /// <summary>
        /// 上海市
        /// </summary>
        public string adm1 { get; set; }
        /// <summary>
        /// 中国
        /// </summary>
        public string country { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string tz { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string utcOffset { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string isDst { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string rank { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string fxLink { get; set; }
    }

    public class Refer
    {
        /// <summary>
        /// 
        /// </summary>
        public List<string> sources { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> license { get; set; }
    }

    public class GeoDataRoot
    {
        /// <summary>
        /// 
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<LocationItem> location { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Refer refer { get; set; }
    }
}
